package com.zlt.service;

import com.zlt.dto.OfferDto;
import com.zlt.entity.Offer;
import com.zlt.vo.OfferVo;
import com.zlt.vo.Pager;
import com.zlt.vo.ReOfferVo;

import javax.servlet.http.Part;
import java.util.List;

public interface OfferService {


    boolean sendOffer(String url, String jsUid,String validTime);

    Pager<OfferVo> selectAllOffer(Pager<OfferVo> pager);

    boolean addOffer(String email, String phone, String validTime, String content, Part offerFile);

    boolean sendOffer(OfferDto offerDto);

    boolean deleteOffer(List<OfferVo> offerVoList);

    boolean updateOffer(OfferDto offerDto);

    boolean chickOffer(String token, String oid, String chick);

    List<ReOfferVo> showOffer(String token);

    boolean addOfflineOffer(OfferDto offerDto, String url);
}
